package com.education.service.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 启动类 [ 消费者 ]
 * Created by Lance on 2020/06/16 22:10
 */
@EnableDiscoveryClient      // 启动注册中心
@EnableFeignClients  // 在消费者启用 OpenFeign
@EnableSwagger2
@SpringBootApplication
@ComponentScan({"com.education"})
public class ServiceEduApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceEduApplication.class, args);
    }
}
